﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EmbeddedLanguage.Attributes;

namespace EmbeddedLanguage
{
    public static class DoubleEx
    {
        [StandardLibraryMapping(
            JSFunctionName = "Math.floor"
        )]
        public static int ToInt(this double number)
        {
            return (int)number;
        }
    }
}
